home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 4
/
United Public Domain Gold 4.iso
/
scope
/
sc168.dms
/
sc168.adf
/
Serial
/
strcmpu.c
< prev
next >
Wrap
Text File
|
1990-11-16
|
475b
|
19 lines
/************************************************************************/
int strcmpu( s, t )
/* returns: -1 is s < t
0 if s = t
1 if s > t
without regard to case */
char s[], t [] ;
{
int i;
i = 0 ;
while( toupper(s[i]) == toupper(t[i]) ) {
if( s[i++] == '\0' ) {
return( 0 ) ;
}
}
return( toupper(s[i]) - toupper(t[i]) ) ;
}
/************************************************************************/